package com.stx.crazy.action;

import com.stx.crazy.entity.Stock;
import com.stx.crazy.service.StockService;

public class StockAction {

	private Stock stock;
	
	private StockService service;

	
	public String addStock() throws Exception{
		service.addStock(stock);
		return "success";
	}
	
	
	
	public Stock getStock() {
		return stock;
	}

	public void setStock(Stock stock) {
		this.stock = stock;
	}

	public StockService getService() {
		return service;
	}

	public void setService(StockService service) {
		this.service = service;
	}

}